# range() 快速初始化数字列表
for value in range(1, 5):
    print(value)

print("type([1, 2, 3, 4, 5]) =", type([1, 2, 3, 4, 5]))
print("type(range(1, 6)) =", type(range(1, 6)))
print("list(range(1, 6)) =", list(range(1, 6)))

even_numbers = list(range(2, 11, 2))
print("even_numbers =", even_numbers)

print()

squares = []
for value in range(1, 11):
    square = value ** 2
    squares.append(square)
print("squares =", squares)
